package GreatBattleOfAircraft.obj;

import java.awt.*;

public class BgObj extends GameObj {
    public BgObj() {
        super();
    }

    public BgObj(Image img, int x, int y, double speed) {
        super(img, x, y, speed);
    }

    @Override
    public void painSelf(Graphics graphics) {
        super.painSelf(graphics);
        y += speed;
        if (y == 0)
            y = -900;
    }
}
